Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allowed compilation without defaullt features #204

Merged
merged 12 commits into from
Nov 29, 2023
Merged

Conversation

milyin
Copy link
Contributor

@milyin milyin commented Nov 28, 2023

cmake build -S zenoh-c -B build -DZENOHC_CARGO_FLAGS="--no-default-features;--features=zenoh/transport_tcp,zenoh/transport_udp"
cmake --build build

Now it's possible to build library with some protocols disabled

This update works together with PR eclipse-zenoh/zenoh#604, link to branch "feature_cleanup2" should be replaced to "master" before commit

@milyin milyin requested a review from Mallets November 28, 2023 15:01
Copy link
Member

@Mallets Mallets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the explanation in the README on how to pass additional compilation features. I suggest to keep the same parameters as in the README to invoke cmake. E.g.:

cmake ../zenoh-c -DZENOHC_CARGO_FLAGS="--no-default-features;--features=zenoh/transport_tcp,zenoh/transport_udp"

src/lib.rs Outdated Show resolved Hide resolved
@milyin
Copy link
Contributor Author

milyin commented Nov 28, 2023

Please add the explanation in the README on how to pass additional compilation features. I suggest to keep the same parameters as in the README to invoke cmake. E.g.:

cmake ../zenoh-c -DZENOHC_CARGO_FLAGS="--no-default-features;--features=zenoh/transport_tcp,zenoh/transport_udp"

Done

@Mallets Mallets merged commit 7d92aa7 into master Nov 29, 2023
6 checks passed
@Mallets Mallets deleted the feature_cleanup2 branch November 29, 2023 09:41
sashacmc pushed a commit to ZettaScaleLabs/zenoh-c that referenced this pull request Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants